<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="com.is.control.ParamStuyearControl"%>
<%@page import="java.util.List"%>
<%@page import="com.is.model.ParamReasonType"%>
<%@page import="com.is.control.ParamReasonTypeControl"%>
<%@page import="com.is.model.ParamReasonTypeGS"%>
<%@page import="com.is.control.ParamReasonTypeGSControl"%>
<%@page import="com.is.util.ParamUtil"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="../../resources/css/default.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="../../resources/css/common.css" />
<script type="text/javascript" src="../../resources/js/jquery-1.8.1.js"></script>
<script type="text/javascript" src="../../resources/js/jquery.artDialog.js"></script>
<style type="text/css">
	.main{padding:6px 0;text-align:left;text-indent:20px;}
	p{text-indent:20px; margin-bottom:20px; margin-top:20px;}
	html{overflow:hidden;}
</style>
<title>设置缺勤计算公式</title>
</head>
<body>
<p>该学期的缺勤折算公式如下:</p>
<div class="main">

<%
       int stuyear = ParamUtil.getInt(request,"usingStuyear",ParamStuyearControl.getCurrentStuyearId());
       //System.out.print(stuyear);
       List<ParamReasonType> types = ParamReasonTypeControl.getAllReaons();
       StringBuffer sb = new StringBuffer();
       for(ParamReasonType prt:types){
    	   if(prt.getId()!=1&&prt.getId()!=3){  //此处以缺勤为单位1
    		   sb.append(prt.getReasonType()+ParamReasonTypeGSControl.getNumByTypeAndStuyear(prt.getId(),stuyear)+"次=");
    	   }
       }
       sb.append("缺勤1次");
       out.print(sb);
%>
</div>
</body>
</html>